'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.post('/auth/login',controller.login.login);
  router.get('/user/info',app.middleware.checktoken(),controller.login.info);
  router.get('/user/nav',app.middleware.checktoken(),controller.login.nav);
};
